<?php

require_once ('common.php');
$session = trim($_GET['session']);
if (!empty($session) && $session == $user['session_id'])
{
    $db->updateRow('bbs_members', array('session_id' => $session), array('session_id' => '', 'lastactivity' => 0));
	$cookie->DestroyAllCookies();
}
header('location: ' . APP_URL);

?>